﻿<%@ Page Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true"
    CodeFile="MonthlyList1.aspx.cs" Inherits="Page_MonthlyList1" Title="无标题页" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Js/calendar.js"></script>
    <script>

        function getID(id) {
            document.getElementById('<%=tbSelectedID.ClientID %>').value = id;
        }

    </script>
    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="Server">
    <asp:Literal runat="Server" ID="ltlHeader"></asp:Literal>科室周报浏览
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <div style="display: none">
        <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" />
        <asp:TextBox ID="tbSelectedID" runat="server"></asp:TextBox>
    </div>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdvancedSearchPlaceHolder" runat="Server">
    <table cellspacing="4" cellpadding="0" border="0" width="100%">
        <tr>
            <td align="right">&nbsp;发布日期：
            </td>
            <td align="right">
                <asp:TextBox ID="tbDateStart" runat="server" onfocus="calendar();" class="Textbox01"></asp:TextBox>
            </td>
            <td align="right">&nbsp;---&nbsp;
            </td>
            <td align="right">
                <asp:TextBox ID="tbDateEnd" runat="server" onfocus="calendar();" class="Textbox01"></asp:TextBox>
            </td>
        </tr>

        <tr>
            <td align="right">&nbsp;文件名称：
            </td>
            <td align="right">
                <asp:TextBox ID="tbFileName" runat="server" class="Textbox01"></asp:TextBox>
            </td>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="开始查询"
                    OnClick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListHeaderPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <!--<wsc:ListHeader ID="Select" runat="server" Type="CheckBox" Width="30" Align="center" />
        <wsc:ListHeader ID="lhSymbol" runat="server" Title="&nbsp;文号" OrderColumn="Symbol"
            Align="center" />-->
        <wsc:ListHeader ID="lhFileName" runat="server" Title="&nbsp;文件名称" OrderColumn="FileName"
            Align="center" />
        <wsc:ListHeader ID="lhPublishTime" runat="server" Title="&nbsp;发布时间" Width="140"
            OrderColumn="PublishTime" Align="center" FirstOrderDirection="DESC" />
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ListContentPlaceHolder" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptFiles" runat="server">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: pointer" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="getID(this.id);ClickChangeClass(this);OpenDetail('MonthlyDetail1.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&Manage=false&Nocache=' + Math.random());">
                    <%--  <td width="30" align="center">
                        <asp:CheckBox ID="cbFiles" runat="server" />
                    </td>
                  <td align="left">
                        &nbsp;<%#Eval("Symbol")%>
                    </td>--%>
                    <td align="left" title="<%#Eval("FileName")%>">&nbsp;<%#Cut(Eval("FileName"),25)%>
                    </td>
                    <td width="140" align="center">
                        <a title="<%#Eval("PublishTime","{0:yyyy-MM-dd}")%>">
                            <%#Eval("PublishTime","{0:yyyy-MM-dd}")%></a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
